package com.llkj.qingnianguoxue.adapter;

import android.widget.ImageView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.llkj.qingnianguoxue.R;
import com.llkj.qingnianguoxue.bean.WorkListBean;
import com.llkj.qingnianguoxue.util.ImageLoadingUtil;

import java.util.List;

/**
 * 圈主作品适配器
 */
public class WorksAdapter extends BaseQuickAdapter<WorkListBean, BaseViewHolder> {

    public WorksAdapter(int layoutResId, List<WorkListBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder baseViewHolder, WorkListBean item) {
        ImageView ivPic = baseViewHolder.getView(R.id.ivPic);
        ImageLoadingUtil.loadImgGlideRoundCenterCrop(ivPic,item.getBg_img());
    }

}
